<template>
	<view>
		<canvas :style="{ position:position,bottom:bottom+'px',left:left+'px',width: width + 'px' ,height: height + 'px' }" canvas-id="firstCanvas" id="firstCanvas"></canvas>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				width:0,
				height:0,
				position:'fixed',
				bottom:-99,
				left:0
			};
		},
		mounted() {
			var systemInfo = uni.getSystemInfoSync();
			this.width = systemInfo.windowWidth;
			this.height = systemInfo.windowWidth * 2;
			this.left = -(systemInfo.windowWidth + 50);
			//console.log(systemInfo)
		}
	}
</script>

<style>

</style>
